Skip to content

Run all three repositories, calibrate, and add results, bundles and run instructions - #70

Merged
Pranav-Mathad merged 6 commits into
mainfrom
issue-12-run-all-calibrate
Nov 28, 2026
Merged

Pranav-Mathad merged 6 commits into
mainfrom
issue-12-run-all-calibrate

Conversation

@Pranav-Mathad

Copy link
Copy Markdown
Owner

Closes #12

Merge after #68. This branch is built on it; the first three commits belong to that pull request.

What this changes

Submission lane, spec.md §9.7, §5.3 and R11. All three repositories were run from scratch, three thresholds were calibrated on all three together, and the results, the web bundles and the run instructions are committed. No module code is changed here.

  • Calibration (src/codexray/settings/). A value changed only where the reason holds on all three; the rest were measured and kept.
  • results/<id>/: findings.json, manifest.json and decisions.yaml of each final run, copied byte for byte, with a results/README.md.
  • web/public/bundles/{artemis,shopware,graylog}/ and the bundle list: 6,081 files, about 95 MB.
  • README.md: status, prerequisites, the exact commands to reproduce one repository, where the results are, token usage, limits.
  • spec.md: three measured or calibrated values (§5.3 restructuring words, §5.6 blame runtime, §9.3 shaky foundation gate). Nothing else.

Calibration: what changed and why

Numbers are Artemis / Shopware / Graylog.

Setting Was Now Reason
analyze.yaml gates.shaky_foundation.top_share_* 0.10 0.05 At the tenth the bar was only 9 / 7 / 8 direct users and 7 / 4 / 3 changes in 12 months, giving 133 / 184 / 115 findings, 44 to 64% of all findings at END. At the twentieth the bar is 16 / 13 / 14 users and the type gives 53 / 77 / 49.
repository.yaml cleaning.restructuring_subject_patterns 5 words 16 words The five words labelled 6 of 42, 5 of 104 and 1 of 23 noise commits. Added the -ing forms and general words for moving or mechanically rewriting code (move, organise, split, extract, refactor, lint, convert, transition). Now 16 / 25 / 7. Known wrong match: one 2018 Shopware commit; two are borderline. Words that gave wrong matches on any repository were rejected (structure, replace, update, cleanup, switch).
report.yaml bundle.max_refs_per_cell 10 3 Evidence lines kept per grid cell; the counts stay exact. Saves 3.2 / 1.1 / 3.1 MB.

Measured and kept: the habit thresholds (Shopware and Graylog have no folder role that qualifies, so a lower value only adds Artemis decisions), the status thresholds, the noise thresholds (500 files sits between the 99th and 99.9th percentile on all three), and the gates of the other finding types.

After calibration Artemis Shopware Graylog
Whole run, clone present, 10-core machine 4.7 min 9.2 min 4.7 min
Decisions 16 1 1
Findings at END (first pass) 219 (299) 179 (286) 189 (255)
In the list to fix first 10 10 10
Bundle on disk (first pass) 37 MB (47) 31 MB (37) 27 MB (34)
Lines with a recorded origin 1,029,656 1,250,015 871,569
Pull requests asked for and stored 37 / 37 21 / 21 21 / 21

Only shaky_foundation counts changed; every other finding type has the same count as before calibration.

What was run and what came out

  • Each repository from scratch, twice, into two scratch runs folders (ingest, parse, model, analyze, report). For all three: the same run folder name, core.db.fingerprint identical over 25 tables, and every written file byte-identical (1,865 / 2,140 / 2,088 files, including findings.json, manifest.json, decisions.yaml and the whole web/ bundle).
  • results/: cmp of every file against its run folder: identical. No absolute path, run clock time or token in them.
  • Bundles: every file loads through its contract model; check_bundle reports 0 errors on all three; before-and-after cells equal the map edges (801 / 362 / 1,054). Installing a bundle twice gives the same bytes.
  • The app, served with vite and dumped with headless Chrome: all 7 screens on all three repositories, plus a finding's close-up and its evidence in the code pane. Names, commits and counts match the bundles (findings 219 / 179 / 189, modules 73 / 146 / 108, decisions 16 / 1 / 1); the cited line is marked in the code pane on each. No error text.
  • One effect of each changed setting followed by hand on each repository: findings that left the shaky foundation type and the weakest kept; a grid cell going from 10 lines to 3 with its count unchanged; three newly labelled commits with git show --stat.
  • make check passes with the three bundles present. The web build copies them into web/dist (109 MB).

Not run, not done

  • No AI call was made. judge, decisions propose and check are stubs on this branch (AI jobs B and C: packets, voting, cache, simulation wiring (codexray judge) #8 is in an open pull request), so token usage is 0 for each repository and there is no usage.json. The README says so. robustness.json is missing because the stability table is not merged (Robustness table, coverage section, exports and codexray check #11).
  • The fourth-language generality check (step 4 of the issue) was not run.
  • Publishing on a static host, repository visibility, whether docs/sponsor/ stays in, the demo rehearsal, and the two questions for the organisers are not part of this pull request.
  • The drawings on canvas (grid, size map, close-up) were not inspected, only the page text and tables around them.
  • make bundle and make web were not run as written: the same commands were run pointing at the scratch runs folder and at another port. Time to download a clone was not measured.
  • This pull request closes Run all three repositories, calibrate, commit results, submission #12 when merged although the items above remain open.

Found, for the owners (not fixed here: no module code in this issue)

  • foundation_on_features gives 0 / 0 / 36: the share of modules using a module is taken over all modules (analyze/findings.py:328), and on Artemis and Shopware the module graph is in separate parts, so core, used by all 34 modules of its part, reaches 0.48.
  • A decision becomes "slipping" on any rise, with no margin (analyze/trends.py:71-73).
  • The restructuring label is the pattern text, so a reader sees it in a change title (repository/labels.py:83).
  • Hidden-partner titles never use their template (report.yaml titles.hidden_partners, report/assemble.py:80-81).
  • 30 / 16 / 1 broken-rule findings sit inside one module and read "X uses X" (analyze/findings.py:202).
  • web/public/bundles/index.json depends on install order while the fixture test expects folder order (report/bundle.py install).
  • ReportFile.hotspots is empty although analyze writes 357 / 95 / 36 hotspots.
  • The bundles are mostly whole cited files; a smaller bundle needs a code change, not a setting.

Checks

  • make check passes
  • Every new fact carries its evidence: commit, file and lines, or the commits (spec.md §4.4)
  • Output is sorted and has no clock time, so a second run gives the same bytes
  • No language or project name in engine code; new starting values are in settings/
  • Does not touch core/contracts.py, core/schema/ or core/runs.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run all three repositories, calibrate, commit results, submission

1 participant